<template>
  <div>
    <h1>Ref</h1>
    <div id="fengMap"></div>
  </div>
</template>
<script>
import fengmap from "fengmap/build/plugins/fengmap.core.min"; //核心包
import "fengmap/build/plugins/fengmap.control.min"; //控件
// 导航需要引入以下两个包：
import "fengmap/build/plugins/fengmap.analyzer.min"; //路径分析类
import "fengmap/build/plugins/fengmap.navi.min"; //导航类
export default {
  mounted() {
    var fmapID = "10347"; //mapId 90873 10347
    var map = new fengmap.FMMap({
      container: document.getElementById("fengMap"), //渲染dom
      // mapThemeURL: "./data/theme", //主题数据位置
      // //默认主题切换成本地2002主题
      // defaultThemeName: "4008",
      appName: "地图",
      //开发者申请应用下web服务的key
      key: "f9e3177fe751c787ce4284dcc63903c7",
    });

    //打开Fengmap服务器的地图数据和主题
    map.openMapById(fmapID);
  },
};
</script>
<style lang="scss" scoped>
#fengMap {
  width: 1300px;
  height: 600px;
}
</style>